package com.molichuxing.gateway.bff.car.entity.response;

import com.molichuxing.framework.dto.ResponseRootDto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 车辆交付检验结果
 * 
 * @author zoumingyu
 * @date 2020年1月2日
 *
 */
@Data
public class CarDeliveryCheckVo extends ResponseRootDto {
	private static final long serialVersionUID = 4309808967530739888L;

	@ApiModelProperty(value = "结果（0：未通过，1：通过）")
	private Boolean result;

	@ApiModelProperty(value = "未通过结果标题(加粗字体)")
	private String title;

	@ApiModelProperty(value = "未通过结果说明")
	private String explain;
	
	public CarDeliveryCheckVo pass() {
		this.result = true;
		return this;
	}
	
	public CarDeliveryCheckVo fail(String title, String explain) {
		this.result = false;
		this.title = title;
		this.explain = explain;
		return this;
	}
}
